package com.entity;

/**
 * Entity representing Goods.
 * JPA annotations removed.
 */
public class Goods extends BaseEntity {

//    private static final long serialVersionUID = 1L;

    private String name;

    private String description;
    private Long userId; // 对应 products 表的 user_id 列


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

//    public void setDescription(String description) {
//        this.description = description;
//    }
//
//    public Long getUserId() {
//        return userId;
//    }
//
//    public void setUserId(Long userId) {
//        this.userId = userId;
//    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + getId() +
                ", name='" + name + "'" +
                ", description='" + description + "'" +
                ", userId=" + userId + // 添加 userId 字段的输出
                '}';
    }
} 